package com.murfrosoft;

import com.murfrosoft.views.AnimationView;

import android.os.Bundle;
import android.app.Activity;
import android.view.Menu;

public class AnimationActivity extends Activity {

	private AnimationView animationView;
	
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		animationView = new AnimationView(this);
		setContentView(animationView);
	}

	@Override
	public boolean onCreateOptionsMenu(Menu menu) {
		// Inflate the menu; this adds items to the action bar if it is present.
		getMenuInflater().inflate(R.menu.activity_animation, menu);
		return true;
	}

	@Override
	protected void onPause() {
		// TODO Auto-generated method stub
		super.onPause();
		animationView.stop();
	}

	@Override
	protected void onResume() {
		// TODO Auto-generated method stub
		super.onResume();
		animationView.go();
	}

}
